home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / mawk10.zip / FILES.H < prev    next >
C/C++ Source or Header  |  1991-10-05  |  1KB  |  54 lines

  1.  
  2. /********************************************
  3. files.h
  4. copyright 1991, Michael D. Brennan
  5.  
  6. This is a source file for mawk, an implementation of
  7. the AWK programming language.
  8.  
  9. Mawk is distributed without warranty under the terms of
  10. the GNU General Public License, version 2, 1991.
  11. ********************************************/
  12.  
  13. /*$Log:    files.h,v $
  14.  * Revision 3.3.1.1  91/09/14  17:23:19  brennan
  15.  * VERSION 1.0
  16.  * 
  17.  * Revision 3.3  91/08/13  06:51:26  brennan
  18.  * VERSION .9994
  19.  * 
  20.  * Revision 3.2  91/06/28  04:16:41  brennan
  21.  * VERSION 0.999
  22.  * 
  23.  * Revision 3.1  91/06/07  10:27:30  brennan
  24.  * VERSION 0.995
  25.  * 
  26.  * Revision 2.2  91/05/22  07:40:58  brennan
  27.  * fixed get_pipe prototype
  28.  * 
  29.  * Revision 2.1  91/04/08  08:23:07  brennan
  30.  * VERSION 0.97
  31.  * 
  32. */
  33.  
  34. #ifndef   FILES_H
  35. #define   FILES_H
  36.  
  37. /* IO redirection types */
  38. #define  F_IN           (-5)
  39. #define  PIPE_IN        (-4)
  40. #define  PIPE_OUT       (-3)
  41. #define  F_APPEND       (-2)
  42. #define  F_TRUNC        (-1)
  43.  
  44. extern char *shell ; /* for pipes and system() */
  45.  
  46. PTR  PROTO(file_find, (STRING *, int)) ;
  47. int  PROTO(file_close, (STRING *)) ;
  48. PTR  PROTO(get_pipe, (char *, int, int *) ) ;
  49. int  PROTO(wait_for, (int) ) ;
  50. void  PROTO( close_out_pipes, (void) ) ;
  51.  
  52.  
  53. #endif
  54.